/**
 * 企业管理Api
 * @author 方礼爱
 * @version 1.0.0
 */
import request from '@/utils/request'

/**
 * 查询企业信息
 * @param {查询参数} params
 */
export const search = (params) => {
  return request.fetchPost('/admin/company/page', params)
}

export const changeStatus = (companyId) => {
  return request.fetchPost('/admin/company/change', { companyId: companyId})
}
/**
 * 编辑/添加企业信息
 * @param {公司} company
 */
export const edit = (company) => {
  return request.fetchPost('/admin/company/edit', company)
}

/**
 * 册除企业
 * @param {comapnyId} id
 */
export const del = (id) => {
  return request.fetchPost('/admin/company/del', { companyId: id })
}

